﻿using Coldairarrow.Business.Aps;
using Coldairarrow.Entity.Aps;
using Coldairarrow.Util;
using EFCore.Sharding;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Base_Manage
{
    public class APS_ProcessGroupBusiness : BaseBusiness<APS_ProcessGroup>, IAPS_ProcessGroupBusiness, ITransientDependency
    {
        public APS_ProcessGroupBusiness(IRepository repository) : base(repository)
        {
        }

        #region 外部接口

        public async Task<PageResult<APS_ProcessGroup>> GetDataListAsync(PageInput input)
        {
            return await GetIQueryable().GetPageResultAsync(input);
        }

        public async Task<APS_ProcessGroup> GetTheDataAsync(string id)
        {
            return await GetEntityAsync(id);
        }

        public async Task AddDataAsync(APS_ProcessGroup newData)
        {
            await InsertAsync(newData);
        }

        public async Task UpdateDataAsync(APS_ProcessGroup theData)
        {
            await UpdateAsync(theData);
        }

        public async Task DeleteDataAsync(List<string> ids)
        {
            await DeleteAsync(ids);
        }

        #endregion

        #region 私有成员

        #endregion

        #region 数据模型

        #endregion
    }
}